package com.cyj.dream.admin.model.system;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @Description: 系统角色和模块关联关系表
 * @BelongsProject: dream-DreamChardonnay
 * @BelongsPackage: com.dream.DreamChardonnay.model.system
 * @Author: ChenYongJia
 * @CreateTime: 2021-04-15 12:20
 * @Email: chen87647213@163.com
 * @Version: 1.0
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@TableName("dream_sys_role_module")
@ApiModel(value = "系统角色和模块关联关系表", description = "dream_sys_role_module 系统角色和模块关联关系表")
public class SysRoleModule implements Serializable {

    @ApiModelProperty(value = "角色id", example = "1")
    private Long sysRoleId;

    @ApiModelProperty(value = "模块id", example = "1")
    private Long sysModuleId;

    @Override
    public String toString() {
        return "SysRoleModule{" +
                "sysRoleId=" + sysRoleId +
                ", sysModuleId=" + sysModuleId +
                '}';
    }

}
